#include <stdio.h>
#include <string.h>
 
int main()
{
	char *a = "12345";
	char *d = strchr(a, '3');
	printf("d== %s \n", d);		// output: 345
	char *e = strchr(a, '6');
	if(e == NULL) {
		printf("e is NULL \n");		// output: e is NULL
	} else {
		printf("e== %s \n", e);	
	}
	
	char b[6] = "123";
	char *f = strchr(b, '3');  
	printf("f== %s \n", f);	// output : f==3
	char *g = strchr(b, '6');
	if(g == NULL) {
		printf("g is NULL \n");	 // output: g is NULL
	} else {
		printf("g== %s \n", g);	
	}

	char c[6] = "123456";
	char *h = strchr(c, '3');
	printf("h== %s \n", h); 	// output : 3456123
	char *i = strchr(c, '');
	if(i == NULL) {
		printf("i is NULL \n");	
	} else {
		printf("i== %s \n", i);	 // output : 6123
	}
}